home *** CD-ROM | disk | FTP | other *** search
/ The X-Philes (2nd Revision) / The X-Philes Number 1 (1995).iso / xphiles / hp48hor2 / sigmabug.doc < prev    next >
Text File  |  1995-03-31  |  2KB  |  47 lines

  1.            Éíííííííííííííííííííííííííííííííííííííííííííííí» 
  2.            º Warning!  STAT applications can wipe memory! º 
  3.            èíííííííííííííííííííííííííííííííííííííííííííííí¼ 
  4.  
  5. äDAT EDIT bug, G/GX, rev K-P.  Reported by EduCALC customer to Richard 
  6. Nelson.  HP, when asked, said they knew about it.  This writeup is by 
  7. Joe Horn. 
  8.  
  9. úÄÄÄÄÄÄÄÄÄÄÄÄÄ¿ 
  10. 3 DESCRIPTION 3 On an HP 48G or GX, version K through P, press: 
  11. àÄÄÄÄÄÄÄÄÄÄÄÄÄù 
  12.  
  13.   left-shift 5     (shows stat menu) 
  14.   DATA             (the first softkey) 
  15.   3 
  16.   left-shift äDAT  (stores the 3 into äDAT) 
  17.   right-shift 5    (shows the STAT application choose box) 
  18.   ENTER            (starts the Single-Var Statistics application) 
  19.   EDIT             (either the softkey or on the keyboard) 
  20.  
  21.   ÄÄ  Memory Clear 
  22.  
  23. úÄÄÄÄÄÄÄ¿ 
  24. 3 CAUSE 3 The EDIT key in the STAT applications throws the contents of 
  25. àÄÄÄÄÄÄÄù äDAT into the MatrixWriter without first performing an 
  26. object type check.  This is reasonable, since the creation of äDAT 
  27. from the applications *does* perform object type checking.  They 
  28. forgot that äDAT can be created elsewhere first, however.  When an 
  29. object that is not an array (matrix) is thrown into the MatrixWriter, 
  30. which only knows how to work with arrays, all hell breaks loose. 
  31.  
  32. Wanna see your HP48 on drugs?  Perform the routine described above, 
  33. but instead of 3, use { 0 }.  The MatrixWriter will launch, but filled 
  34. with garbage values.  Press right-shift down-arrow, then right-shift 
  35. right-arrow.  Look at the cell coordinates on the command line!  It 
  36. would appear that we are editing a complex matrix that's 979,058 by 
  37. 480,114!  Yikes; that would require 7.52 Terabytes of RAM!  Pressing 
  38. ON twice to exit reveals a pile of junk on the stack.  Bad news. 
  39.  
  40. úÄÄÄÄÄÄÄÄÄÄÄÄ¿ 
  41. 3 WORKAROUND 3 The best workaround is never to store non-arrays into 
  42. àÄÄÄÄÄÄÄÄÄÄÄÄù äDAT, which is a silly thing to do anyway.  But since 
  43. software might do so, a sufficient workaround is to visually inspect 
  44. äDAT before pressing EDIT, and if it's not an array, then press MATRIX 
  45. (right-shift ENTER) instead of EDIT, or simply to type the matrix 
  46. directly from the keyboard and press ENTER. 
  47.